<?php
class FC {
var $db;
var $bool;
	function FC()
	{
		$this->db= new DB();
	}
	function Check($name)
	{
		$this->db->query("select count(*) as n
				from user as a 
				where a.mail=\"".$name."\";");
		while($this->dbin->fetch_assoc())
		{
			if($dbin->row['n']==1)
			{	
				$this->bool=1;
			}
			$this->name=$this->db->row['n'];		
		}
	
	return $this->bool;
	}
}
?>
